package model

import "time"

type Page struct {
	Start int64 `form:"start,default=0"`
	Limit int64 `form:"limit,default=20"`
}

type PageSize struct {
	Page int64 `form:"page,default=0"`
	Size int64 `form:"size,default=10"`
}

type PagePageSize struct {
	Page     int64 `form:"page,default=0"`
	PageSize int64 `form:"page_size,default=10"`
}

type ServiceId struct {
	Id uint `json:"id" form:"id,default=0" validate:"required"`
}

// AccessToken 参数
type AcsToken struct {
	AccessToken string `json:"access_token" form:"access_token" validate:"required"`
}

type AppIdSecret struct {
	AppId  string `json:"appid" form:"appid" validate:"required"`
	Secret string `json:"secret" form:"secret" validate:"required"`
}

type Sids struct {
	Ids []int64 `json:"ids" form:"ids" validate:"required"`
}

type CareerTheme struct {
	Theme string `json:"theme" form:"theme,default=default" validate:"required"`
}

type Sid struct {
	Id int64 `json:"sid" form:"sid" validate:"required"`
}

type TypeUReq struct {
	Typ uint `form:"type" json:"type"`
}

type TypeStrReq struct {
	Typ string `form:"type" json:"type"`
}

type MsgInfo struct {
	Id   uint   `form:"id" json:"id"`
	Text string `form:"text" json:"text"`
}

// 发送消息返回值
type SendMsgResp struct {
	SendStatus bool `json:"send_status"`
}

// 时间
type CondTime struct {
	StartTime *time.Time `form:"start_time" time_format:"2006-01-02 15:04:05"`
	EndTime   *time.Time `form:"end_time" time_format:"2006-01-02 15:04:05"`
}

// token
type AppSecretToken struct {
	ClientId  string
	AppSecret string
	Source    string
	Uid       uint
}

//type MsgInfo struct {
//	Id       uint   `form:"id" json:"id"`
//	Text     string `form:"text" json:"text"`
//	Video    string `form:"video" json:"video"`
//	Pc_video string `form:"pc_video" json:"pc_video"`
//}
